<?php 
/* Index...controls everything.*/

if (!isset($_GET['action'])) {
  if (!isset($_SESSION['username'])) {
    include("login.php");
  }
}
else if ($_GET['action'] == 'register') {
  include("register.php");
}


?>